package com.xing.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName(value = "live_room")
@NoArgsConstructor
@AllArgsConstructor
public class LiveRoomEntity {

    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 主播id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long anchorId;

    /**
     * 房间号
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long roomNumber;

    /**
     * 房间简介
     */
    private String info;

    /**
     * 房间封面id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long coverId;

    /**
     * 公告
     */
    private String notice;


    /**
     * 是否开播（0:开播，1:未开播）
     */
    private int broadcastFlag;


    /**
     * 启动状态（0:启动，1:禁用）
     */
    private int status;


    /**
     * 逻辑删除（0:正藏，1:删除）
     */
    private int delFlag;


}
